<?php 
$maxcat=$CONFIG['category_item']; // so item hien thi tren 1 trang 
$maxitem=$CONFIG['acticle_item'];
$admin_image_path="../".$CONFIG['upload_image_path'];
$admin_media_path="../".$CONFIG['upload_media_path'];
$maxpage=8; // so trang duoc hien thi 

require ("../lib/upload.php");
require ("../lib/imaging.php");
include("../FCKeditor/fckeditor.php") ;
require ("lib/functionadmin.php");
$tpl=new TemplatePower("skin/sk_header.htm");
$tpl->prepare();
if($_GET['lang']=="_eng"){
	$_SESSION['langadmin']="_eng";
}elseif($_GET['lang']=='_vn'){
	$_SESSION['langadmin']="";
}
session_register('langadmin');
$lang=$_SESSION['langadmin'];

if($lang=='_eng'){
		$tpl->assign("lang","Tiếng anh (English)");
}else{
			$tpl->assign("lang","Tiếng việt");
}
$tpl->assignGlobal("loginadminname",$_SESSION["addminname"]);
$tpl->assignGlobal("loginusername",$_SESSION["session_username"] );
$tpl->assignGlobal("site_name",$CONFIG["site_name"]);
if($_GET['page']!='sr_menu'){
	$tpl->newBlock("date")	;
}
$arrtable=array(
		'cat' => 'id_cat',
		'catpd' => 'id_catpd',
		'catpt' => 'id_catpt',
		'catif' => 'id_catif'
	);
$tpl->printToScreen();
?>